package com.rankeiot.platform.util;

import lombok.Data;

public interface TokenManager {
    String getToken();
    @Data
    class Token{
        String token;
        Long expirationTime=0L;
        public void expirationAfter(int seconds){
            this.expirationTime=System.currentTimeMillis()+seconds*1000;
        }
    }
    interface TokenHandler{
        void updateToken(Token oldToken);
    }
}
